package org.bulkLoader.loadinginfo
{
	import flash.display.Bitmap;
	import flash.media.Sound;
	import flash.system.ApplicationDomain;
	import flash.system.LoaderContext;
	import flash.text.StyleSheet;
	import flash.utils.ByteArray;

	public class BulkItemLoadingInfo implements IBulkItemLoadingInfo
	{
		public function BulkItemLoadingInfo()
		{
		}
		
		public var bytesTotal:uint;
		public var bytesLoaded:uint;
		public var percentage:Number;
		public var loaderContext:LoaderContext = null;
		
		public var data:* = null;
		public var bitmap:Bitmap = null;
		public var css:StyleSheet = null;
		public var xml:XML = null;
		public var sound:Sound = null;
		public var bytes:ByteArray = null;
		
		
		public function getBytesTotal():uint
		{
			return bytesTotal;
		}
		
		public function getBytesLoaded():uint
		{
			return bytesLoaded;
		}
		
		public function getPercentage():Number
		{
			return percentage;
		}
		
		public function getLoaderContext():LoaderContext
		{
			return loaderContext;
		}
		
		// get data
		public function getData():*
		{
			return data;
		}
		
		public function getDataAsBitmap():Bitmap
		{
			return bitmap;
		}
		
		public function getDataAsCss():StyleSheet
		{
			return css;
		}
		
		public function getDataAsXml():XML
		{
			return xml;
		}
		
		public function getDataAsSound():Sound
		{
			return sound;
		}
		
		public function getDataAsBytes():ByteArray
		{
			return bytes;	
		}
	}
}